#include<stdio.h>

int main()
	int n;
	scanf("%d", &n);
	int max = 0;
	
	for (int i = 0; i < n; i++){
		getchar();
		scanf("%s", &stu_info[i].name);
		getchar();
		scanf("%c", &stu_info[i].gender);
		getchar();
		scanf("%d", &stu_info[i].age);
		getchar();
		scanf("%f", &stu_info[i].score);
		
		if (stu_info[i].score > stu_info[max].score)
			max = i;
	}

	printf("\nName\t\tSex\tAge\tScore\n");
	printf("%s\t\t%c\t%d\t%5.1f\n",stu_info[max].name, stu_info[max].gender, stu_info[max].age, stu_info[max].score);
	return 0;
}
